package com.genersoft.iot.vmp.vmanager.bean;

import com.genersoft.iot.vmp.common.ResultCode;

public class WVPResult<T> {
    private int code;

    private String msg;

    private T data;

    public void setValue(ResultCode resultCode) {
        this.code = resultCode.getCode();
        this.msg = resultCode.getMsg();
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }
}